package com.vc.aha_server_event.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author Vc
 * @date 2022/03/30 14:26
 */
@Data
public class TravelThroughPageDTO {
    /**
     * 事件ID
     */
    @NotNull(message = "事件ID不能为空")
    Integer eventId;
    /**
     * 插入时间
     */
    @NotNull(message = "插入时间不能为空")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "GMT+8"
    )
    Date time;
    /**
     * 数据
     */
    TravelThroughPageDataDTO data;
}
